package kr.hkit.powerjava.chapter12.work;

public class TestStack {
	public static void main(String[] args) {
		int size = 5;
		Stack stack = new Stack(5);
		stack.push("a");
		stack.prnStack();
		stack.push("b");
		stack.prnStack();
		stack.push("c");
		stack.prnStack();
		stack.push("d");
		stack.prnStack();
		stack.push("e");
		stack.prnStack();


		for (int i = 0; i < 5; i++) {
			System.out.println("pop" + stack.pop());
			stack.prnStack();
		}
		for (int i = 97; i <size+97; i++) {
			stack.push(String.format("%c", i));
			stack.prnStack();

		}
		
/*		  System.out.println("pop"+ stack.pop()); 
		  System.out.println("pop"+ stack.pop()); 
		  System.out.println("pop"+ stack.pop());*/
		 
	}

}
